#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "global.h"

void pre_tread_eqar(sourceInfo *input, configureInfo *cfi_in, unsigned char *src[3][MAX_FACE]){

}

#if asyerp
void pre_tread_asyerp(sourceInfo *input, configureInfo *cfi_in, unsigned char *src[3][MAX_FACE]){

}
#endif

void pre_tread_cube(sourceInfo *input, configureInfo *cfi_in, unsigned char *src[3][MAX_FACE]){

}

#if doublering

void pre_tread_doublering(sourceInfo *input, configureInfo *cfi_in, unsigned char *src[3][MAX_FACE]){

}

#endif

#if POLERECT
void pre_tread_polerect(sourceInfo *input, configureInfo *cfi_in, unsigned char *src[3][MAX_FACE]){

}
#endif

#if ASC
void pre_tread_asc(sourceInfo *input, configureInfo *cfi_in, unsigned char *src[3][MAX_FACE]){

}
#endif

#if ISP
void decompactFramePack(sourceInfo *input, configureInfo *cfi_in);
void pre_tread_isp(sourceInfo *input, configureInfo *cfi_in, unsigned char *src[3][MAX_FACE]){
	decompactFramePack(input,  cfi_in);
}
#endif

#if MTK_SS_CUBE

void pre_tread_ssCube(sourceInfo *input, configureInfo *cfi_in, unsigned char *src[3][MAX_FACE]){

}

#endif

void init_function_pre_tread(sourceInfo *input_Info, sourceInfo *output_Info){

	// init output function

	if (!strcmp(input_Info->format, "eqar")){
		handle_function.pre_tread_in = pre_tread_eqar;
	}
#if asyerp
    else if (!strcmp(input_Info->format, "asyerp")){
        handle_function.pre_tread_in = pre_tread_asyerp;
    }

#endif

#if doublering
	else if (!strcmp(input_Info->format, "doublering")){
		handle_function.pre_tread_in = pre_tread_doublering;
	}

#endif

	else if (!strcmp(input_Info->format, "cube")){
		handle_function.pre_tread_in = pre_tread_cube;
	}

#if POLERECT
	else if (!strcmp(input_Info->format, "polerect")){
		handle_function.pre_tread_in = pre_tread_polerect;
	}
#endif

#if ASC
	else if (!strcmp(input_Info->format, "asc")){
		handle_function.pre_tread_in = pre_tread_asc;
	}
#endif
#if ISP
	else if (!strcmp(input_Info->format, "isp")){
		handle_function.pre_tread_in = pre_tread_isp;
	}
#endif
#if MTK_SS_CUBE

	else if (!strcmp(input_Info->format, "ssCube")){
		handle_function.pre_tread_in = pre_tread_ssCube;
	}

#endif
	if (!strcmp(output_Info->format, "eqar")){
		handle_function.pre_tread_out = pre_tread_eqar;
	}

#if doublering
	else if (!strcmp(output_Info->format, "doublering")){
		handle_function.pre_tread_out = pre_tread_doublering;
	}

#endif
	else if (!strcmp(output_Info->format, "cube")){
		handle_function.pre_tread_out = pre_tread_cube;
	}

#if POLERECT
	else if (!strcmp(output_Info->format, "polerect")){
		handle_function.pre_tread_out = pre_tread_polerect;
	}
#endif

#if ASC
	else if (!strcmp(output_Info->format, "asc")){
		handle_function.pre_tread_out = pre_tread_asc;
	}
#endif
#if ISP
	else if (!strcmp(output_Info->format, "isp")){
		handle_function.pre_tread_out = pre_tread_isp;
	}
#endif
#if MTK_SS_CUBE

	else if (!strcmp(output_Info->format, "ssCube")){
		handle_function.pre_tread_out = pre_tread_ssCube;
	}

#endif

}